package org.mch.func.file.filename;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Insets;

import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.SwingConstants;
import javax.swing.border.LineBorder;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import org.mch.biz.ui.FuncEvent;
import org.mch.biz.ui.FuncPanel;
import org.mch.swingm.core.MTextField;
import org.mch.swingm.ext.METextChooser;
import org.mch.swingm.obj.MItem;
import java.awt.FlowLayout;
import javax.swing.JTextField;

/**
 * 描述：文件名操作功能；</BR>
 * 
 * @author MC、ZL；
 * 
 */
public class ClientPanel extends FuncPanel {
	private static final long serialVersionUID = 1L;

	private JRadioButton selAddFileNamePrefix;
	private MTextField textFileNamePrefix;
	private JButton btnExecute;
	private ButtonGroup buttonGroup;
	private JRadioButton selAddFileNameSuffix;
	private MTextField textFileNameSuffix;
	private JRadioButton rdbtn_oldnew;
	private JRadioButton rdbtn_zdwjfolder;
	private JRadioButton rdbtn_filefoldercount;
	private JCheckBox chx_baohanfile;
	private JCheckBox chx_baohanfolder;
	private JCheckBox chx_baohanfilehide;
	private JCheckBox chx_baohanfolderhide;
	private MTextField text_filefolder_count;
	private JCheckBox chx_baohanfolderchild;
	private JCheckBox check_floder;
	private JLabel label_1;
	private MTextField text_filetype;
	private JTabbedPane tabbedPane;
	private JPanel panel_6;
	private JPanel panel_7;
	private JScrollPane scrollPane;
	private JTextArea text_repgz;
	private METextChooser file_path;
	private JCheckBox isFileAndFolderName;
	private JRadioButton rdbtn_filetypeedit;
	private MTextField text_oldfiletype;
	private MTextField text_newfiletype;
	private JLabel label;
	private JCheckBox check_searchchild;
	private JRadioButton rdbtn_insertname;
	private JSplitPane splitPane;
	private JPanel panel_1;
	private MTextField text_insertindex;
	private MTextField text_insertstr;
	private JCheckBox chx_childfiletype;
	private JRadioButton rdbtn_filenamenumberedit;
	private MTextField text_filenamenumberedit_type;
	private MTextField text_filenamenumberedit_begin;
	private JPanel panel;
	private JPanel panel_2;
	private JPanel panel_3;
	private JPanel panel_4;
	private JPanel panel_5;
	private JPanel panel_8;
	private JPanel panel_9;
	private JPanel panel_10;
	private JRadioButton rdbtn_filenameprefixfolder;
	private JLabel label_2;
	private MTextField text_prefixfolder_filetype;
	private JLabel label_3;
	private MTextField text_prefixfolder_append;
	private JCheckBox checkBox_prefixfolderchildfolder;
	private JPanel panel_11;
	private JPanel panel_12;
	private JPanel panel_13;
	private JPanel panel_14;
	private JRadioButton rdbtn_converjsp;
	private JButton btnNewButton;
	private JScrollPane scrollPane_1;
	private JTextArea text_jspheader;
	private JLabel label_4;
	private JTextField text_jspcvrtype;
	private JCheckBox chx_jspchildfile;
	private JLabel label_5;
	private JTextField text_encoding;

	public ClientPanel() {
		initComponents();
	}

	private void initComponents() {
		setLayout(new BorderLayout(0, 0));
		add(getSplitPane(), BorderLayout.CENTER);
		getButtonGroup();
	}

	protected FuncEvent createEvent() {
		return new ClientEvent(this);
	}

	public JRadioButton getSelAddFileNamePrefix() {
		if (selAddFileNamePrefix == null) {
			selAddFileNamePrefix = new JRadioButton("\u5C06\u5F53\u524D\u76EE\u5F55\u4E0B\u6240\u6709\u6587\u4EF6\u540D\u589E\u52A0\u524D\u7F00\uFF1A");
			selAddFileNamePrefix.setSelected(true);
			selAddFileNamePrefix.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return selAddFileNamePrefix;
	}

	public MTextField getTextFileNamePrefix() {
		if (textFileNamePrefix == null) {
			textFileNamePrefix = new MTextField();
			textFileNamePrefix.setFont(new Font("宋体", Font.PLAIN, 12));
			textFileNamePrefix.setColumns(10);
		}
		return textFileNamePrefix;
	}

	public JButton getBtnExecute() {
		if (btnExecute == null) {
			btnExecute = new JButton("\u6267\u884C");
			btnExecute.setBounds(716, 12, 72, 33);
			btnExecute.setFont(new Font("宋体", Font.PLAIN, 16));
			btnExecute.setMargin(new Insets(2, 2, 2, 2));
			btnExecute.addActionListener(getEvent());
		}
		return btnExecute;
	}

	public ButtonGroup getButtonGroup() {
		if (buttonGroup == null) {
			buttonGroup = new ButtonGroup();
			buttonGroup.add(getSelAddFileNamePrefix());
			buttonGroup.add(getSelAddFileNameSuffix());
			buttonGroup.add(getRdbtn_oldnew());
			buttonGroup.add(getRdbtn_zdwjfolder());
			buttonGroup.add(getRdbtn_filefoldercount());
			buttonGroup.add(getRdbtn_insertname());
			buttonGroup.add(getRdbtn_filetypeedit());
			buttonGroup.add(getRdbtn_filenamenumberedit());
			buttonGroup.add(getRdbtn_filenameprefixfolder());
			buttonGroup.add(getRdbtn_converjsp());
		}
		return buttonGroup;
	}

	public JRadioButton getSelAddFileNameSuffix() {
		if (selAddFileNameSuffix == null) {
			selAddFileNameSuffix = new JRadioButton("\u5C06\u5F53\u524D\u76EE\u5F55\u4E0B\u6240\u6709\u6587\u4EF6\u540D\u589E\u52A0\u540E\u7F00\uFF1A");
			selAddFileNameSuffix.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return selAddFileNameSuffix;
	}

	public MTextField getTextFileNameSuffix() {
		if (textFileNameSuffix == null) {
			textFileNameSuffix = new MTextField();
			textFileNameSuffix.setFont(new Font("宋体", Font.PLAIN, 12));
			textFileNameSuffix.setColumns(10);
		}
		return textFileNameSuffix;
	}

	public JRadioButton getRdbtn_oldnew() {
		if (rdbtn_oldnew == null) {
			rdbtn_oldnew = new JRadioButton("按文本框中键值对规则逐个替换：");
			rdbtn_oldnew.setBorder(new LineBorder(Color.LIGHT_GRAY));
			rdbtn_oldnew.setBounds(7, 9, 219, 23);
			rdbtn_oldnew.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_oldnew;
	}

	public JRadioButton getRdbtn_zdwjfolder() {
		if (rdbtn_zdwjfolder == null) {
			rdbtn_zdwjfolder = new JRadioButton("将文件夹下指定类型文件的文件名改为其文件夹名");
			rdbtn_zdwjfolder.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_zdwjfolder;
	}

	public JRadioButton getRdbtn_filefoldercount() {
		if (rdbtn_filefoldercount == null) {
			rdbtn_filefoldercount = new JRadioButton("统计目录下文件文件夹个数");
			rdbtn_filefoldercount.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_filefoldercount;
	}

	public JCheckBox getChx_baohanfile() {
		if (chx_baohanfile == null) {
			chx_baohanfile = new JCheckBox("包含文件");
			chx_baohanfile.setFont(new Font("宋体", Font.PLAIN, 12));
			chx_baohanfile.setSelected(true);
		}
		return chx_baohanfile;
	}

	public JCheckBox getChx_baohanfolder() {
		if (chx_baohanfolder == null) {
			chx_baohanfolder = new JCheckBox("包含文件夹");
			chx_baohanfolder.setFont(new Font("宋体", Font.PLAIN, 12));
			chx_baohanfolder.setSelected(true);
		}
		return chx_baohanfolder;
	}

	public JCheckBox getChx_baohanfilehide() {
		if (chx_baohanfilehide == null) {
			chx_baohanfilehide = new JCheckBox("含隐藏文件");
			chx_baohanfilehide.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return chx_baohanfilehide;
	}

	public JCheckBox getChx_baohanfolderhide() {
		if (chx_baohanfolderhide == null) {
			chx_baohanfolderhide = new JCheckBox("含隐藏文件夹");
			chx_baohanfolderhide.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return chx_baohanfolderhide;
	}

	public MTextField getText_filefolder_count() {
		if (text_filefolder_count == null) {
			text_filefolder_count = new MTextField();
			text_filefolder_count.setEditable(false);
			text_filefolder_count.setFont(new Font("宋体", Font.PLAIN, 12));
			text_filefolder_count.setColumns(10);
		}
		return text_filefolder_count;
	}

	public JCheckBox getChx_baohanfolderchild() {
		if (chx_baohanfolderchild == null) {
			chx_baohanfolderchild = new JCheckBox("包含子目录");
			chx_baohanfolderchild.setFont(new Font("宋体", Font.PLAIN, 12));
			chx_baohanfolderchild.setSelected(true);
		}
		return chx_baohanfolderchild;
	}

	public JCheckBox getCheck_floder() {
		if (check_floder == null) {
			check_floder = new JCheckBox("是否修改文件夹名");
			check_floder.setToolTipText("");
			check_floder.setBounds(234, 9, 141, 23);
			check_floder.setFont(new Font("宋体", Font.BOLD, 12));
		}
		return check_floder;
	}

	public JLabel getLabel_1() {
		if (label_1 == null) {
			label_1 = new JLabel("文件类型：");
			label_1.setToolTipText("如：avi  jpg  mp4");
			label_1.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return label_1;
	}

	public MTextField getText_filetype() {
		if (text_filetype == null) {
			text_filetype = new MTextField();
			text_filetype.setText("avi");
			text_filetype.setFont(new Font("宋体", Font.PLAIN, 12));
			text_filetype.setColumns(10);
		}
		return text_filetype;
	}

	public JTabbedPane getTabbedPane() {
		if (tabbedPane == null) {
			tabbedPane = new JTabbedPane(JTabbedPane.TOP);
			tabbedPane.setFont(new Font("宋体", Font.PLAIN, 14));
			tabbedPane.addTab("基本文件名操作", null, getPanel_6(), null);
			tabbedPane.addTab("文件名称替换", null, getPanel_7(), null);
			tabbedPane.addTab("文件转成JSP", null, getPanel_11(), null);
			tabbedPane.addChangeListener(new ChangeListener() {
				@Override
				public void stateChanged(ChangeEvent e) {
					JTabbedPane tab = (JTabbedPane) e.getSource();
					if (tab.getSelectedComponent() == getPanel_6()) {
						getSelAddFileNamePrefix().setSelected(true);
					} else if (tab.getSelectedComponent() == getPanel_7()) {
						getRdbtn_oldnew().setSelected(true);
					} else if (tab.getSelectedComponent() == getPanel_11()) {
						getRdbtn_converjsp().setSelected(true);
					}
				}
			});
		}
		return tabbedPane;
	}

	public JPanel getPanel_6() {
		if (panel_6 == null) {
			panel_6 = new JPanel();
			panel_6.setLayout(null);
			panel_6.add(getPanel());
			panel_6.add(getPanel_2());
			panel_6.add(getPanel_3());
			panel_6.add(getPanel_4());
			panel_6.add(getPanel_5());
			panel_6.add(getPanel_8());
			panel_6.add(getPanel_9());
			panel_6.add(getPanel_10());
		}
		return panel_6;
	}

	public JPanel getPanel_7() {
		if (panel_7 == null) {
			panel_7 = new JPanel();
			panel_7.setLayout(null);
			panel_7.add(getRdbtn_oldnew());
			panel_7.add(getCheck_floder());
			panel_7.add(getScrollPane());
			panel_7.add(getCheck_searchchild());
		}
		return panel_7;
	}

	public JScrollPane getScrollPane() {
		if (scrollPane == null) {
			scrollPane = new JScrollPane();
			scrollPane.setBounds(7, 44, 656, 450);
			scrollPane.setViewportView(getText_repgz());
		}
		return scrollPane;
	}

	public JTextArea getText_repgz() {
		if (text_repgz == null) {
			text_repgz = new JTextArea();
		}
		return text_repgz;
	}

	public METextChooser getFile_path() {
		if (file_path == null) {
			file_path = new METextChooser(new MItem("目录："), METextChooser.SELECT_FOLDER);
			file_path.setBounds(12, 12, 692, 34);
		}
		return file_path;
	}

	public JCheckBox getIsFileAndFolderName() {
		if (isFileAndFolderName == null) {
			isFileAndFolderName = new JCheckBox("是否包含文件夹");
			isFileAndFolderName.setSelected(true);
			isFileAndFolderName.setFont(new Font("宋体", Font.PLAIN, 13));
		}
		return isFileAndFolderName;
	}

	public JRadioButton getRdbtn_filetypeedit() {
		if (rdbtn_filetypeedit == null) {
			rdbtn_filetypeedit = new JRadioButton("将文件夹下指定类型文件改为其其它类型文件，即修改文件后缀！");
			rdbtn_filetypeedit.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_filetypeedit;
	}

	public MTextField getText_oldfiletype() {
		if (text_oldfiletype == null) {
			text_oldfiletype = new MTextField();
			text_oldfiletype.setText("asp");
			text_oldfiletype.setFont(new Font("宋体", Font.PLAIN, 12));
			text_oldfiletype.setColumns(10);
		}
		return text_oldfiletype;
	}

	public MTextField getText_newfiletype() {
		if (text_newfiletype == null) {
			text_newfiletype = new MTextField();
			text_newfiletype.setText("html");
			text_newfiletype.setFont(new Font("宋体", Font.PLAIN, 12));
			text_newfiletype.setColumns(10);
		}
		return text_newfiletype;
	}

	public JLabel getLabel() {
		if (label == null) {
			label = new JLabel("→");
			label.setFont(new Font("Dialog", Font.BOLD, 13));
			label.setHorizontalAlignment(SwingConstants.CENTER);
		}
		return label;
	}

	public JCheckBox getCheck_searchchild() {
		if (check_searchchild == null) {
			check_searchchild = new JCheckBox("是否搜索子文件夹");
			check_searchchild.setToolTipText("");
			check_searchchild.setFont(new Font("宋体", Font.BOLD, 12));
			check_searchchild.setBounds(388, 8, 141, 23);
		}
		return check_searchchild;
	}

	public JRadioButton getRdbtn_insertname() {
		if (rdbtn_insertname == null) {
			rdbtn_insertname = new JRadioButton("在指定文件或文件夹名称某个字符前，插入字符：");
			rdbtn_insertname.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_insertname;
	}

	public JSplitPane getSplitPane() {
		if (splitPane == null) {
			splitPane = new JSplitPane();
			splitPane.setDividerSize(5);
			splitPane.setOrientation(JSplitPane.VERTICAL_SPLIT);
			splitPane.setRightComponent(getTabbedPane());
			splitPane.setLeftComponent(getPanel_1());
			splitPane.setDividerLocation(60);
		}
		return splitPane;
	}

	public JPanel getPanel_1() {
		if (panel_1 == null) {
			panel_1 = new JPanel();
			panel_1.setLayout(null);
			panel_1.add(getFile_path());
			panel_1.add(getBtnExecute());
		}
		return panel_1;
	}

	public MTextField getText_insertindex() {
		if (text_insertindex == null) {
			text_insertindex = new MTextField();
			text_insertindex.setText("1");
			text_insertindex.setFont(new Font("宋体", Font.PLAIN, 12));
			text_insertindex.setColumns(10);
		}
		return text_insertindex;
	}

	public MTextField getText_insertstr() {
		if (text_insertstr == null) {
			text_insertstr = new MTextField();
			text_insertstr.setText("A");
			text_insertstr.setFont(new Font("宋体", Font.PLAIN, 12));
			text_insertstr.setColumns(10);
		}
		return text_insertstr;
	}

	public JCheckBox getChx_childfiletype() {
		if (chx_childfiletype == null) {
			chx_childfiletype = new JCheckBox("包含子目录");
			chx_childfiletype.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return chx_childfiletype;
	}

	public JRadioButton getRdbtn_filenamenumberedit() {
		if (rdbtn_filenamenumberedit == null) {
			rdbtn_filenamenumberedit = new JRadioButton("将当前文件夹下所有对应类型文件，按数字顺序重命名：");
			rdbtn_filenamenumberedit.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_filenamenumberedit;
	}

	public MTextField getText_filenamenumberedit_type() {
		if (text_filenamenumberedit_type == null) {
			text_filenamenumberedit_type = new MTextField();
			text_filenamenumberedit_type.setText("png");
			text_filenamenumberedit_type.setFont(new Font("宋体", Font.PLAIN, 12));
			text_filenamenumberedit_type.setColumns(10);
		}
		return text_filenamenumberedit_type;
	}

	public MTextField getText_filenamenumberedit_begin() {
		if (text_filenamenumberedit_begin == null) {
			text_filenamenumberedit_begin = new MTextField();
			text_filenamenumberedit_begin.setText("1");
			text_filenamenumberedit_begin.setFont(new Font("宋体", Font.PLAIN, 12));
			text_filenamenumberedit_begin.setColumns(10);
		}
		return text_filenamenumberedit_begin;
	}

	public JPanel getPanel() {
		if (panel == null) {
			panel = new JPanel();
			panel.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel.setBounds(8, 10, 753, 35);
			panel.add(getSelAddFileNamePrefix());
			panel.add(getTextFileNamePrefix());
			panel.add(getSelAddFileNameSuffix());
			panel.add(getTextFileNameSuffix());
			panel.add(getIsFileAndFolderName());
		}
		return panel;
	}

	public JPanel getPanel_2() {
		if (panel_2 == null) {
			panel_2 = new JPanel();
			panel_2.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_2.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_2.setBounds(8, 55, 753, 35);
			panel_2.add(getRdbtn_zdwjfolder());
			panel_2.add(getLabel_1());
			panel_2.add(getText_filetype());
		}
		return panel_2;
	}

	public JPanel getPanel_3() {
		if (panel_3 == null) {
			panel_3 = new JPanel();
			panel_3.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_3.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_3.setBounds(8, 145, 753, 35);
			panel_3.add(getRdbtn_filefoldercount());
			panel_3.add(getChx_baohanfile());
			panel_3.add(getChx_baohanfolderchild());
			panel_3.add(getChx_baohanfolder());
			panel_3.add(getChx_baohanfilehide());
			panel_3.add(getChx_baohanfolderhide());
			panel_3.add(getText_filefolder_count());
		}
		return panel_3;
	}

	public JPanel getPanel_4() {
		if (panel_4 == null) {
			panel_4 = new JPanel();
			panel_4.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_4.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_4.setBounds(8, 190, 753, 35);
			panel_4.add(getRdbtn_filetypeedit());
			panel_4.add(getText_oldfiletype());
			panel_4.add(getLabel());
			panel_4.add(getText_newfiletype());
			panel_4.add(getChx_childfiletype());
		}
		return panel_4;
	}

	public JPanel getPanel_5() {
		if (panel_5 == null) {
			panel_5 = new JPanel();
			panel_5.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_5.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_5.setBounds(8, 235, 753, 35);
			panel_5.add(getRdbtn_insertname());
			panel_5.add(getText_insertindex());
			panel_5.add(getText_insertstr());
		}
		return panel_5;
	}

	public JPanel getPanel_8() {
		if (panel_8 == null) {
			panel_8 = new JPanel();
			panel_8.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_8.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_8.setBounds(8, 280, 753, 35);
			panel_8.add(getRdbtn_filenamenumberedit());
			panel_8.add(getText_filenamenumberedit_type());
			panel_8.add(getText_filenamenumberedit_begin());
		}
		return panel_8;
	}

	public JPanel getPanel_9() {
		if (panel_9 == null) {
			panel_9 = new JPanel();
			panel_9.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_9.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_9.setBounds(8, 355, 753, 35);
		}
		return panel_9;
	}

	public JPanel getPanel_10() {
		if (panel_10 == null) {
			panel_10 = new JPanel();
			panel_10.setBorder(new LineBorder(Color.LIGHT_GRAY));
			FlowLayout flowLayout = (FlowLayout) panel_10.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_10.setBounds(8, 100, 753, 35);
			panel_10.add(getRdbtn_filenameprefixfolder());
			panel_10.add(getLabel_3());
			panel_10.add(getText_prefixfolder_append());
			panel_10.add(getLabel_2());
			panel_10.add(getText_prefixfolder_filetype());
			panel_10.add(getCheckBox_prefixfolderchildfolder());
		}
		return panel_10;
	}

	public JRadioButton getRdbtn_filenameprefixfolder() {
		if (rdbtn_filenameprefixfolder == null) {
			rdbtn_filenameprefixfolder = new JRadioButton("将文件夹下指定类型文件的文件名前加上文件夹名");
			rdbtn_filenameprefixfolder.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_filenameprefixfolder;
	}

	public JLabel getLabel_2() {
		if (label_2 == null) {
			label_2 = new JLabel("文件类型：");
			label_2.setToolTipText("如：avi  jpg  mp4");
			label_2.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return label_2;
	}

	public MTextField getText_prefixfolder_filetype() {
		if (text_prefixfolder_filetype == null) {
			text_prefixfolder_filetype = new MTextField();
			text_prefixfolder_filetype.setText("avi");
			text_prefixfolder_filetype.setFont(new Font("宋体", Font.PLAIN, 12));
			text_prefixfolder_filetype.setColumns(10);
		}
		return text_prefixfolder_filetype;
	}

	public JLabel getLabel_3() {
		if (label_3 == null) {
			label_3 = new JLabel("文件夹名后追加：");
			label_3.setToolTipText("如：avi  jpg  mp4");
			label_3.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return label_3;
	}

	public MTextField getText_prefixfolder_append() {
		if (text_prefixfolder_append == null) {
			text_prefixfolder_append = new MTextField();
			text_prefixfolder_append.setFont(new Font("宋体", Font.PLAIN, 12));
			text_prefixfolder_append.setColumns(10);
		}
		return text_prefixfolder_append;
	}

	public JCheckBox getCheckBox_prefixfolderchildfolder() {
		if (checkBox_prefixfolderchildfolder == null) {
			checkBox_prefixfolderchildfolder = new JCheckBox("是否更新子文件夹");
			checkBox_prefixfolderchildfolder.setSelected(true);
			checkBox_prefixfolderchildfolder.setFont(new Font("宋体", Font.PLAIN, 13));
		}
		return checkBox_prefixfolderchildfolder;
	}

	public JPanel getPanel_11() {
		if (panel_11 == null) {
			panel_11 = new JPanel();
			panel_11.setLayout(new BorderLayout(0, 0));
			panel_11.add(getPanel_12(), BorderLayout.NORTH);
			panel_11.add(getPanel_13(), BorderLayout.EAST);
			panel_11.add(getPanel_14(), BorderLayout.CENTER);
		}
		return panel_11;
	}

	public JPanel getPanel_12() {
		if (panel_12 == null) {
			panel_12 = new JPanel();
			FlowLayout flowLayout = (FlowLayout) panel_12.getLayout();
			flowLayout.setAlignment(FlowLayout.LEFT);
			panel_12.add(getRdbtn_converjsp());
			panel_12.add(getLabel_4());
			panel_12.add(getText_jspcvrtype());
			panel_12.add(getChx_jspchildfile());
			panel_12.add(getLabel_5());
			panel_12.add(getText_encoding());
		}
		return panel_12;
	}

	public JPanel getPanel_13() {
		if (panel_13 == null) {
			panel_13 = new JPanel();
			panel_13.add(getBtnNewButton());
		}
		return panel_13;
	}

	public JPanel getPanel_14() {
		if (panel_14 == null) {
			panel_14 = new JPanel();
			panel_14.setLayout(new BorderLayout(0, 0));
			panel_14.add(getScrollPane_1(), BorderLayout.CENTER);
		}
		return panel_14;
	}

	public JRadioButton getRdbtn_converjsp() {
		if (rdbtn_converjsp == null) {
			rdbtn_converjsp = new JRadioButton("将对应类型文件，转换成JSP文件");
			rdbtn_converjsp.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return rdbtn_converjsp;
	}

	public JButton getBtnNewButton() {
		if (btnNewButton == null) {
			btnNewButton = new JButton("New button");
		}
		return btnNewButton;
	}

	public JScrollPane getScrollPane_1() {
		if (scrollPane_1 == null) {
			scrollPane_1 = new JScrollPane();
			scrollPane_1.setViewportView(getText_jspheader());
		}
		return scrollPane_1;
	}

	public JTextArea getText_jspheader() {
		if (text_jspheader == null) {
			text_jspheader = new JTextArea();
			text_jspheader.setText("<%@ page language=\"java\" contentType=\"text/html; charset=UTF-8\" pageEncoding=\"UTF-8\"%>");
		}
		return text_jspheader;
	}

	public JLabel getLabel_4() {
		if (label_4 == null) {
			label_4 = new JLabel("转换文件类型：");
			label_4.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return label_4;
	}

	public JTextField getText_jspcvrtype() {
		if (text_jspcvrtype == null) {
			text_jspcvrtype = new JTextField();
			text_jspcvrtype.setText("html");
			text_jspcvrtype.setColumns(10);
			text_jspcvrtype.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return text_jspcvrtype;
	}

	public JCheckBox getChx_jspchildfile() {
		if (chx_jspchildfile == null) {
			chx_jspchildfile = new JCheckBox("包含子目录");
			chx_jspchildfile.setSelected(true);
			chx_jspchildfile.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return chx_jspchildfile;
	}

	public JLabel getLabel_5() {
		if (label_5 == null) {
			label_5 = new JLabel("编码：");
			label_5.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return label_5;
	}

	public JTextField getText_encoding() {
		if (text_encoding == null) {
			text_encoding = new JTextField();
			text_encoding.setText("UTF-8");
			text_encoding.setColumns(10);
			text_encoding.setFont(new Font("宋体", Font.PLAIN, 12));
		}
		return text_encoding;
	}
}